package work;

public class ExtendDemo {
    public static void main(String[] args) {
        Boo b1 = new Boo();
        b1.show();
        //test();
        //this.test();
        ExtendDemo e = new ExtendDemo();
        e.test();
        Aoo b2 = new Boo();
        //b2.show();

        Aoo a = new Aoo();
        Boo b = new Boo();
        Aoo ab = new Boo();
        Aoo.say();
        Boo.say();
        a.say();
        b.say();
        ab.say();


    }

    public void test(){
        System.out.println("test111");
    }
}

class Aoo{
    private int x = 5;
    private int y = 10;
    private void show(){
        System.out.println("111");
    }
    public static void say(){
        System.out.println("Static1");
    }
}

class Boo extends Aoo{
    public void show(){
        System.out.println("2222");
    }

}
